package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.RscWarnAccLoan;
import com.fdb.efp.nls.service.domain.RscWarnAccLoanTmp;
import com.fdb.efp.nls.service.vo.RscWarnAccLoanVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:业务数据信息表				<p>
 * @author chenqm1
 * @date 2018-05-30
 */
public interface RscWarnAccLoanDao {
	
	public int insertRscWarnAccLoan(RscWarnAccLoan rscWarnAccLoan);
	
	public int deleteByPk(RscWarnAccLoan rscWarnAccLoan);
	
	public int updateByPk(RscWarnAccLoan rscWarnAccLoan);
	
	public RscWarnAccLoan queryByPk(RscWarnAccLoan rscWarnAccLoan);
	
	public List<RscWarnAccLoan> queryAllOwnerByPage(RscWarnAccLoanVO rscWarnAccLoan);
	
	/**
	 * 批量插入临时表
	 * @param list
	 * @return
	 */
	public int batchInsertRscWarnAccLoanTmp(@Param("list") List<RscWarnAccLoanTmp> list);
	
	/**
	 * 将正式表信息转移到历史表
	 * @return
	 */
	public int insertRscWarnAccLoanHisByTmp();
	
	/**
	 * 删除正式表数据
	 * @return
	 */
	public int deleteRscWarnAccLoanByTmp();
	
	/**
	 * 插入正式表数据
	 * @return
	 */
	public int insertRscWarnAccLoanByTmp();
	
	/**
     * 删除临时表数据
     * @return
     */
    public int deleteRscWarnAccLoanTmp();
    //查询借据最新的逾期信息
	public RscWarnAccLoan queryBybillNo(RscWarnAccLoan rscWarnAcc);

}
